package net.onceface.core.domain.enums;

/**
 * 支付方式
 * **/
public enum Payment {
	Alipay("支付宝支付"),
	Weixin("微信支付"),
	Bank("网银支付"),
	Offline("线下支付");
	
	private String label;
	
	private Payment(String label) {
		this.label = label;
	}

	public String getLabel() {
		return label;
	}

	public static Payment getByLabel(String label) {
		for (Payment each : Payment.values()) {
			if (each.getLabel().equals(label)) {
				return each;
			}
		}
		return null;
	}
}
